翻訳と辞書
Words near each other
・ Beautiful sibia
・ Beautiful Sin
・ Beautiful Skin
・ Beautiful Sky
・ Beautiful So Far
・ Beautiful Solitude
・ Beautiful Son
・ Beautiful Song
・ Beautiful Songs
・ Beautiful Songs by Men
・ Beautiful Soul
・ Beautiful Soul (Cynthia Layne album)
・ Beautiful Soul (Jesse McCartney album)
・ Beautiful Soul (Mamadee album)
・ Beautiful Soul (song)
Beautiful Soup
・ Beautiful Store
・ Beautiful Stories for Ugly Children
・ Beautiful Stories for Ugly Children (album)
・ Beautiful Stories from Shakespeare
・ Beautiful Stranger
・ Beautiful Stranger (disambiguation)
・ Beautiful Stranger (Zoey Dean novel)
・ Beautiful Strangers
・ Beautiful Strangers (TV series)
・ Beautiful sunbird
・ Beautiful Sunday
・ Beautiful Sunday (song)
・ Beautiful Surprise
・ Beautiful Surprise (song)


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Beautiful Soup : ウィキペディア英語版
Beautiful Soup

Beautiful Soup is a Python package for parsing HTML and XML documents (including having malformed markup, i.e. non-closed tags, so named after Tag soup). It creates a parse tree for parsed pages that can be used to extract data from HTML, which is useful for web scraping.〔(【引用サイトリンク】url=http://www.crummy.com/software/BeautifulSoup/ )
It is available for Python 2.6+ and Python 3.
==Code example==

# anchor extraction from html document
from bs4 import BeautifulSoup
import urllib2
webpage = urllib2.urlopen('http://en.wikipedia.org/wiki/Main_Page')
soup = BeautifulSoup(webpage)
for anchor in soup.find_all('a'):
print(anchor.get('href', '/'))


抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Beautiful Soup」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.